package com.shixj.demo.Semaphore;

/**
 * Created by shixj on 2017/9/25.
 */
public class SetRemove implements Runnable {
    BoundedHashSet<Integer> set;
    private final int index;

    public SetRemove(BoundedHashSet<Integer> set, int index) {
        this.set = set;
        this.index = index;
    }

    @Override
    public void run() {
            set.remove(index);
    }
}
